<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>BMI指数计算器</title>
		<script>
			var height = prompt("请输入您的身高，注意单位是米");
			var weight = prompt("请输入您的体重，注意单位是千克");
			height = parseFloat(height);
			weight = parseFloat(weight);
			var bmi = weight/(height*height);
			alert("您的BMI指数是:" + bmi);
			
		</script>
	</head>
	<body>
	</body>
</html>